Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP packaging support #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PyVMF.py → pyvmf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import math
import operator
from random import randint
from tools import num
from importer import *
from .tools import num
from .importer import *
from typing import List, Tuple, Generator
import warnings

Expand Down
2 changes: 1 addition & 1 deletion src/debug/ico.py → pyvmf/debug/ico.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PyVMF import *
from pyvmf import *
from obj import *

v = new_vmf()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/debug/window.py → pyvmf/debug/window.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PyVMF import *
from pyvmf import *
from random import randint

v = new_vmf()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/importer.py → pyvmf/importer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tools import num
from .tools import num
import re


Expand Down
2 changes: 1 addition & 1 deletion src/obj.py → pyvmf/obj.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pywavefront import *
from PyVMF import *
from pyvmf import *


def obj_to_solids(filename: str, material_path: str = "", scale=64):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tests.testing_tools import *
import unittest
from PyVMF import *
from pyvmf import *


class TestImportExport(unittest.TestCase):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/tools.py → pyvmf/tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


def num(s: str):
"""
Tries to turn string into int or float
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PyVMF import *
from pyvmf import *
from random import randint
from typing import List

Expand Down
16 changes: 16 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from setuptools import setup

def readme():
with open('README.md') as f:
return f.read()

setup(name='pyvmf',
version='0.0.1',
description='A python VMF parser',
long_description=readme(),
url='https://github.com/GorangeNinja/PyVMF',
author='Noah "GorangeNinja"',
author_email='[email protected]',
license='MIT',
packages=['pyvmf'],
zip_safe=False)