Created
March 11, 2021 16:09
-
-
Save mfdeveloper/d2b4350ba48efa0c8592622df02b4bf5 to your computer and use it in GitHub Desktop.
Python: Creating packages using setup.py legacy/old style. Prefer use the PEP 517 most updated style, using setup.cfg + pyproject.toml files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install required dependencies from setup.py "install_requires" param | |
# Reference: https://caremad.io/posts/2013/07/setup-vs-requirement | |
--index-url https://pypi.python.org/simple/ | |
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Publish this project as a pip package | |
# Common dev dependencies to create/publish Python packages here | |
-r requirements.txt | |
plyfile==0.7.3 | |
setuptools~=54.1.0 | |
wheel~=0.36.2 | |
twine~=3.3.0 | |
tqdm~=4.59.0 | |
setuptools-scm~=5.0.2 | |
build==0.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import setuptools | |
with open("README.md", "r") as fh: | |
long_description = fh.read() | |
setuptools.setup( | |
use_scm_version=True, | |
name='surface_reconstruction', | |
author="Felipe Michel Ferreira", | |
author_email="mfelipeof@gmail.com", | |
description=""" | |
Import a point cloud file and perform poisson 3D surface reconstruction algorithm, | |
integrated with third-party libraries (e.g. open3d, pymeshlab...) | |
""", | |
install_requires=[ | |
'open3d ==0.12', | |
'pymeshlab ==0.2', | |
'numpy' | |
], | |
long_description=long_description, | |
long_description_content_type="text/markdown", | |
url="https://github.com/mfdeveloper/surface_reconstruction_python", | |
packages=setuptools.find_packages(), | |
python_requires='>=3.6', | |
classifiers=[ | |
"License :: OSI Approved :: MIT License", | |
"Operating System :: OS Independent", | |
"Topic :: Multimedia :: Graphics :: 3D Rendering", | |
"Environment :: GPU", | |
"Development Status :: 5 - Production/Stable", | |
"Programming Language :: Python :: 3", | |
"Programming Language :: Python :: 3.8", | |
], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment