-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
22 lines (17 loc) · 700 Bytes
/
setup.py
File metadata and controls
22 lines (17 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from os import getcwd, path
from setuptools import setup
# Change accordingly ----------------------------
PACKAGE_DIR_NAME = "githubsecrets"
GITHUB_OWNER = "unfor19"
GITHUB_REPOSITORY = "githubsecrets"
# -----------------------------------------------
# Keep the same structure, should NOT be changed
with open("version", "r") as fh:
version = fh.read()
with open(path.join(getcwd(), 'src', PACKAGE_DIR_NAME, '__init__.py'), "w") as fh: # noqa: E501
fh.write(f"__version__ = '{version}'\n")
setup(
version=version,
download_url=f'https://github.com/{GITHUB_OWNER}/{GITHUB_REPOSITORY}/archive/{version}.tar.gz', # noqa: E501
)
# -----------------------------------------------