|
4 | 4 | import os |
5 | 5 | from setuptools import setup, find_packages |
6 | 6 |
|
| 7 | +# allow setup.py to be run from any path |
| 8 | +os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) |
7 | 9 |
|
8 | | -README = open( |
9 | | - os.path.join(os.path.dirname(__file__), 'README.md'), |
10 | | - encoding='utf-8').read() |
11 | 10 | REQUIREMENTS = open( |
12 | 11 | os.path.join(os.path.dirname(__file__), 'requirements.txt'), |
13 | 12 | encoding='utf-8').read() |
14 | | - |
15 | | -# allow setup.py to be run from any path |
16 | | -os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) |
| 13 | +VERSION = __import__('react').__version__ |
| 14 | +URL = 'https://github.com/nitely/python-react-v8' |
| 15 | +README = "For more info, go to: %s" % URL |
17 | 16 |
|
18 | 17 | setup( |
19 | 18 | name='python-react-v8', |
20 | | - version='0.1.0', |
| 19 | + version=VERSION, |
21 | 20 | description='Thin wrapper around v8-cffi to render React views server-side.', |
22 | 21 | author='Esteban Castro Borsani', |
23 | 22 | author_email='ecastroborsani@gmail.com', |
24 | 23 | long_description=README, |
25 | | - url='https://github.com/nitely/python-react-v8', |
| 24 | + url=URL, |
26 | 25 | packages=find_packages(exclude=['examples']), |
27 | 26 | test_suite="runtests.start", |
28 | 27 | zip_safe=False, |
| 28 | + include_package_data=True, |
29 | 29 | install_requires=REQUIREMENTS, |
30 | 30 | setup_requires=REQUIREMENTS, |
31 | 31 | license='MIT License', |
|
0 commit comments