53 lines
1.6 KiB
Python
53 lines
1.6 KiB
Python
import os
|
|
import sys
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
about = {}
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
with open(os.path.join(here, "pycw", "__version__.py"), "r") as f:
|
|
exec(f.read(), about)
|
|
|
|
with open("README.md", "r") as f:
|
|
readme = f.read()
|
|
|
|
if sys.argv[-1] == "publish":
|
|
os.system("python setup.py sdist bdist_wheel")
|
|
os.system("twine upload dist/*")
|
|
sys.exit()
|
|
|
|
setup(
|
|
name=about["__title__"],
|
|
version=about["__version__"],
|
|
description=about["__description__"],
|
|
packages=find_packages(),
|
|
url=about["__url__"],
|
|
license=about["__license__"],
|
|
author=about["__author__"],
|
|
author_email=about["__author_email__"],
|
|
long_description_content_type="text/markdown",
|
|
long_description=readme,
|
|
install_requires=[
|
|
'numpy',
|
|
],
|
|
classifiers=[
|
|
'License :: OSI Approved :: Apache Software License',
|
|
# 'Programming Language :: Python :: 3',
|
|
# 'Programming Language :: Python :: 3.0',
|
|
# 'Programming Language :: Python :: 3.1',
|
|
# 'Programming Language :: Python :: 3.2',
|
|
# 'Programming Language :: Python :: 3.3',
|
|
'Programming Language :: Python :: 3.4',
|
|
'Programming Language :: Python :: 3.5',
|
|
'Programming Language :: Python :: 3.6',
|
|
'Programming Language :: Python :: 3.7',
|
|
'Programming Language :: Python :: 3.8',
|
|
'Programming Language :: Python :: 3.9',
|
|
'Programming Language :: Python :: 3 :: Only',
|
|
],
|
|
entry_points={
|
|
'console_scripts': ['pycw=pycw.__main__:main'],
|
|
},
|
|
package_data={'': ['README.md']},
|
|
include_package_data=True,
|
|
zip_safe=False) |