Selaa lähdekoodia

Merge pull request #146 from alexandrevicenzi/pypi

pypi: setup.py to enable deploy to pypi
Jason Antic 6 vuotta sitten
vanhempi
sitoutus
46c870e639
2 muutettua tiedostoa jossa 43 lisäystä ja 0 poistoa
  1. 3 0
      MANIFEST.in
  2. 40 0
      setup.py

+ 3 - 0
MANIFEST.in

@@ -0,0 +1,3 @@
+include README.md
+include LICENSE
+include requirements.txt

+ 40 - 0
setup.py

@@ -0,0 +1,40 @@
+from setuptools import setup, find_packages
+
+
+def get_description():
+    return "Deep Learning library for colorizing and restoring old images and video"
+
+
+# def get_long_description():
+#     with open("README.md") as f:
+#         return f.read()
+
+
+def get_requirements():
+    with open("requirements.txt") as f:
+        return f.read().splitlines()
+
+
+setup(
+    name="DeOldify",
+    version="0.0.1",
+    packages=find_packages(exclude=["tests"]),
+    url="https://github.com/jantic/DeOldify",
+    license="MIT License",
+    description=get_description(),
+    # long_description=get_long_description(),
+    # long_description_content_type="text/markdown",
+    classifiers=[
+        "Development Status :: 4 - Beta",
+        "Framework :: Jupyter",
+        "Intended Audience :: Developers",
+        "Intended Audience :: Science/Research",
+        "License :: OSI Approved :: MIT License",
+        "Programming Language :: Python :: 3.6",
+        "Programming Language :: Python :: 3.7",
+        "Topic :: Scientific/Engineering :: Artificial Intelligence",
+        "Topic :: Software Development :: Libraries :: Python Modules",
+    ],
+    install_requires=get_requirements(),
+    python_requires=">=3.6",
+)