Skip to content

Commit

Permalink
change the setup file so version is accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
jss367 committed Mar 8, 2024
1 parent ce8a4f6 commit 9e47568
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 24 deletions.
24 changes: 0 additions & 24 deletions setup.cfg

This file was deleted.

29 changes: 29 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import os

from setuptools import find_packages, setup

version = {}
with open(os.path.join("src", "pyxtend", "_version.py")) as fp:
exec(fp.read(), version)

setup(
name="pyxtend",
version=version["__version__"],
author="Julius",
author_email="julius.simonelli@gmail.com",
description="Some functions for Python",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/jss367/pyxtend",
project_urls={
"Bug Tracker": "https://github.com/jss367/pyxtend/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.8",
)
1 change: 1 addition & 0 deletions src/pyxtend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from ._version import __version__
from .struct import * # noqa
from .vprint import * # noqa
1 change: 1 addition & 0 deletions src/pyxtend/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.4.1"

0 comments on commit 9e47568

Please sign in to comment.