Skip to content

Commit

Permalink
[package] move package metadata to about.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Nov 29, 2019
1 parent f04ce38 commit 61fbde1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
import setuptools

root_dir = os.path.abspath(os.path.dirname(__file__))

about = {}
with open("src/aioquic/about.py") as fp:
exec(fp.read(), about)

readme_file = os.path.join(root_dir, "README.rst")
with open(readme_file, encoding="utf-8") as f:
long_description = f.read()
Expand All @@ -12,10 +17,6 @@
if sys.platform != "win32":
extra_compile_args = ["-std=c99"]

about = {}
with open("src/aioquic/__init__.py") as fp:
exec(fp.read(), about)

setuptools.setup(
name=about["__title__"],
version=about["__version__"],
Expand Down
10 changes: 3 additions & 7 deletions src/aioquic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
__author__ = "Jeremy Lainé"
__email__ = "[email protected]"
__license__ = "BSD"
__summary__ = "An implementation of QUIC and HTTP/3"
__title__ = "aioquic"
__uri__ = "https://github.com/aiortc/aioquic"
__version__ = "0.8.4"
# flake8: noqa

from .about import __version__
7 changes: 7 additions & 0 deletions src/aioquic/about.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__author__ = "Jeremy Lainé"
__email__ = "[email protected]"
__license__ = "BSD"
__summary__ = "An implementation of QUIC and HTTP/3"
__title__ = "aioquic"
__uri__ = "https://github.com/aiortc/aioquic"
__version__ = "0.8.4"

0 comments on commit 61fbde1

Please sign in to comment.