33
44# File names
55DESCRIPTION_FILE = "README.md"
6+ KEYWORDS_FILE = "keywords.txt"
67REQUIREMENTS_FILE = "requirements.txt"
78VERSION_FILE = "bip_utils/_version.py"
89
910# Load long description
1011def load_long_description ():
1112 return open (DESCRIPTION_FILE ).read ()
1213
13- # Read version
14+ # Load keywords
15+ def load_keywords ():
16+ with open (KEYWORDS_FILE , "r" ) as fin :
17+ return ", " .join ([line for line in map (str .strip , fin .read ().splitlines ())
18+ if len (line ) > 0 and not line .startswith ('#' )])
19+
20+ # Load version
1421def load_version ():
1522 version_line = open (VERSION_FILE ).read ().rstrip ()
1623 vre = re .compile (r'__version__: str = "([^"]+)"' )
@@ -29,9 +36,12 @@ def load_requirements():
2936
3037# Load needed files
3138long_description = load_long_description ()
39+ keywords = load_keywords ()
3240install_requires = load_requirements ()
3341version = load_version ()
3442
43+ print (keywords )
44+
3545# Setup configuration
3646setuptools .setup (
3747 name = "bip_utils" ,
@@ -40,7 +50,7 @@ def load_requirements():
4050 author_email = "ebellocchia@gmail.com" ,
4151 maintainer = "Emanuele Bellocchia" ,
4252 maintainer_email = "ebellocchia@gmail.com" ,
43- description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation. Supported coins: Bitcoin, Bitcoin Cash, BitcoinSV, Litecoin, Dogecoin, Dash, Zcash, Ethereum, Ethereum Classic, VeChain, Ripple, Tron, Cosmos, Band Protocol, Kava, IRIS Network, Terra, Binance Chain, Binance Smart Chain, Avalanche, Polygon, Fantom Opera, Harmony One, Huobi Chain, OKEx Chain. " ,
53+ description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation." ,
4454 long_description = long_description ,
4555 long_description_content_type = "text/markdown" ,
4656 url = "https://github.com/ebellocchia/bip_utils" ,
@@ -62,7 +72,7 @@ def load_requirements():
6272 "bip/bip39_words/korean.txt"
6373 ]
6474 },
65- keywords = "bitcoin, bitcoin cash, bitcoinsv, litecoin, dogecoin, dash, zcash, ethereum, ethereum classic, vechain, ripple, tron, cosmos, atom, band protocol, kava, iris, irisnet, terra, binance chain, binance smart chain, bnb, avalanche, avax, polygon, matic, fantom opera, harmony one, huobi chain, okex chain, wallet, hd-wallet, bip39, bip32, bip44, bip49, bip84, python" ,
75+ keywords = keywords ,
6676 platforms = ["any" ],
6777 classifiers = [
6878 "Programming Language :: Python :: 3" ,
0 commit comments