Skip to content

Instantly share code, notes, and snippets.

@juancarlospaco
Last active July 26, 2022 23:55
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juancarlospaco/b91d7736281e2090fce84ed399c68972 to your computer and use it in GitHub Desktop.
Save juancarlospaco/b91d7736281e2090fce84ed399c68972 to your computer and use it in GitHub Desktop.
setup.py using setup.cfg for config for python3.
# See: https://setuptools.readthedocs.io/en/latest/setuptools.html#metadata
[metadata]
name = example
provides = example
description = example package
url = https://github.com/example/example
download_url = https://github.com/example/example
author = Deborah Melltrozzo
author_email = example@example.com
maintainer = Deborah Melltrozzo
maintainer_email = example@example.com
keywords = python3, argentina, exampletag, sometag
license = GPL-3 LGPL-3
platforms = Linux, Darwin, Windows
version = attr: somepythonmodule.__version__
project_urls =
Docs = https://github.com/example/example/README.md
Bugs = https://github.com/example/example/issues
C.I. = https://travis-ci.org/example/example
license_file = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
classifiers = # https://pypi.python.org/pypi?%3Aaction=list_classifiers
Development Status :: 5 - Production/Stable
Environment :: Console
Environment :: Other Environment
Intended Audience :: Developers
Intended Audience :: Other Audience
Natural Language :: English
License :: OSI Approved :: GNU General Public License (GPL)
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Operating System :: OS Independent
Operating System :: POSIX :: Linux
Operating System :: Microsoft :: Windows
Operating System :: MacOS :: MacOS X
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
[options]
zip_safe = True
include_package_data = True
python_requires = >=3.6
tests_require = isort ; prospector ; pre-commit ; pre-commit-hooks
install_requires = pip
setup_requires = pip ; cython
packages = find:
[bdist_wheel]
universal = 1
python-tag = py36
[install_lib]
compile = 0
optimize = 2
[bdist_egg]
exclude-source-files = true
# [options.package_data]
# * = *.pxd, *.pyx, *.json, *.txt
# [options.exclude_package_data]
# ;* = *.c, *.so, *.js
# [options.entry_points]
# console_scripts =
# foo = my_package.some_module:main_func
# bar = other_module:some_func
# gui_scripts =
# baz = my_package_gui:start_func
# [options.packages.find]
# where = .
# include = *.py, *.pyw
# exclude = *.c, *.so, *.js, *.tests, *.tests.*, tests.*, tests
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment