-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (36 loc) · 1.26 KB
/
setup.py
File metadata and controls
40 lines (36 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from setuptools import find_packages, setup
GITHUB_URL = "https://github.com/tfiers/puprelease"
with open("ReadMe.md", mode="r", encoding="utf-8") as f:
readme = f.read()
setup(
name="puprelease",
description="Publishing a new version of your Python package has never been easier",
author="Tomas Fiers",
author_email="tomas.fiers@gmail.com",
long_description=readme,
long_description_content_type="text/markdown",
url=GITHUB_URL,
project_urls={"Source Code": GITHUB_URL},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
entry_points={"console_scripts": ["pup=puprelease.pup:cli"]},
packages=find_packages("src"),
package_dir={"": "src"}, # (`""` is the "root" package).
install_requires=[
"click >= 7.1", # Major versions go fast and are not very breaking. Hence no `~`.
"requests ~= 2.0",
"twine",
"wheel",
"setuptools_scm",
"colorama; platform_system == 'Windows'",
],
# Get package version from git tags
setup_requires=["setuptools_scm"],
use_scm_version={
"version_scheme": "post-release",
"local_scheme": "dirty-tag",
},
)