Skip to content

Commit

Permalink
chore: update project info.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed May 23, 2021
1 parent 723b3e5 commit 78487fa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "fastcrc"
version = "0.1.0"
authors = ["overcat <[email protected]>"]
edition = "2018"
description = "A hyper-fast Python module for computing CRC checksum"
description = "A hyper-fast Python module for computing CRC(16, 32, 64) checksum"
license = "MIT License"
repository = "https://github.com/overcat/fastcrc"
homepage = "https://github.com/overcat/fastcrc"
Expand Down
2 changes: 1 addition & 1 deletion fastcrc/__version__.py → fastcrc/__info__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "fastcrc"
__description__ = "A hyper-fast Python module for computing CRC checksum"
__description__ = "A hyper-fast Python module for computing CRC(16, 32, 64) checksum"
__url__ = "https://github.com/overcat/fastcrc"
__issues__ = f"{__url__}/issues"
__version__ = "0.1.0"
Expand Down
14 changes: 11 additions & 3 deletions fastcrc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
from . import crc16
from . import crc32
from . import crc64
from . import crc16, crc32, crc64
from .__info__ import (
__author__,
__author_email__,
__description__,
__issues__,
__license__,
__title__,
__url__,
__version__,
)
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@

about = {}
with open(
os.path.join(here, "fastcrc", "__version__.py"), mode="r", encoding="utf-8"
os.path.join(here, "fastcrc", "__info__.py"), mode="r", encoding="utf-8"
) as f:
exec(f.read(), about)

with open("README.md", mode="r", encoding="utf-8") as f:
with open("README.rst", mode="r", encoding="utf-8") as f:
readme = f.read()

setup(
name=about["__title__"],
version=about["__version__"],
description=about["__description__"],
long_description=readme,
long_description_content_type="text/markdown",
author=about["__author__"],
author_email=about["__author_email__"],
url=about["__url__"],
Expand All @@ -39,7 +38,6 @@
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
Expand Down

0 comments on commit 78487fa

Please sign in to comment.