Skip to content

Commit d5b11c6

Browse files
committed
Specify version & other info in version.py
1 parent f3117c6 commit d5b11c6

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

alteza/version.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version = "0.9.0"
2+
3+
name = "alteza"
4+
5+
repo_url = "https://github.com/arjun-menon/%s" % name
6+
download_url = "%s/archive/v%s.tar.gz" % (repo_url, version)
7+
8+
author = "Arjun G. Menon"
9+
author_email = "[email protected]"

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
from setuptools import setup
22

3-
version = "0.9.0"
4-
5-
name = "alteza"
6-
7-
repo_url = "https://github.com/arjun-menon/%s" % name
8-
download_url = "%s/archive/v%s.tar.gz" % (repo_url, version)
3+
from alteza.version import version, name, repo_url, download_url, author, author_email
94

105
setup(
116
name=name,
@@ -30,8 +25,8 @@
3025
long_description_content_type="text/markdown",
3126
url=repo_url,
3227
download_url=download_url,
33-
author="Arjun G. Menon",
34-
author_email="[email protected]",
28+
author=author,
29+
author_email=author_email,
3530
keywords=["static site generator", "static sites", "ssg"],
3631
license="AGPL-3.0-or-later",
3732
# Ref:https://docs.python.org/3.11/distutils/examples.html

0 commit comments

Comments
 (0)