1
0

Versioning
All checks were successful
Python Package / Package (push) Has been skipped

This commit is contained in:
Jon Michael Aanes 2024-02-17 11:32:48 +01:00
parent 072ab3f297
commit cdb297de0f
3 changed files with 24 additions and 5 deletions

View File

@ -1,13 +1,26 @@
#!/usr/bin/env python
from setuptools import setup from setuptools import setup
import re
PACKAGE_NAME = 'socials_util'
with open('README.md', 'r') as f:
readme = f.read()
with open(PACKAGE_NAME+'/_version.py', 'r') as f:
match = re.match(r'^__version__\s*=\s*"([\d\.]+)"$', f.read())
version = match.group(1)
del match
setup( setup(
name='socials_util', name=PACKAGE_NAME,
version='0.1.0', version=version,
description='Small utility used by one-page-internet for social site detection.', long_description=readme,
long_description_content_type='text/markdown',
author='Jmaa', author='Jmaa',
author_email='jonjmaa@gmail.com', author_email='jonjmaa@gmail.com',
url='https://gitfub.space/Jmaa/socials-util', url='https://gitfub.space/Jmaa/socials-util',
packages=['socials_util'], packages=[PACKAGE_NAME],
install_requires=['enforce-typing', 'aenum'], install_requires=['enforce-typing', 'aenum'],
keywords=[], keywords=[],
classifiers=[], classifiers=[],

View File

@ -10,6 +10,8 @@ import datetime
import re import re
import urllib.parse import urllib.parse
from socials_util._version import __version__
class SocialSiteId(aenum.Enum): class SocialSiteId(aenum.Enum):
''' '''
The great social website enum. The great social website enum.
@ -55,7 +57,6 @@ class SocialSiteId(aenum.Enum):
BLUESKY_PROFILE = 12361 BLUESKY_PROFILE = 12361
BLUESKY_DID = 12409 BLUESKY_DID = 12409
ITCH_IO_DEVELOPER = 8176 ITCH_IO_DEVELOPER = 8176
FIREFOX_PROFILE_BOOKMARKS = 33
COHOST_PROFILE = 117203288 COHOST_PROFILE = 117203288
SOUNDCLOUD_ARTIST = 3040 SOUNDCLOUD_ARTIST = 3040
IGDB_GAME_ID = 5794 IGDB_GAME_ID = 5794
@ -64,6 +65,10 @@ class SocialSiteId(aenum.Enum):
PLURK = 32111 PLURK = 32111
# Browser bookmarks
FIREFOX_PROFILE_BOOKMARKS = 33
FALKON_PROFILE_BOOKMARKS = 34
def wikidata_property(self, client): def wikidata_property(self, client):
return client.get(WIKIDATA_PROPERTIES[self]) return client.get(WIKIDATA_PROPERTIES[self])

1
socials_util/_version.py Normal file
View File

@ -0,0 +1 @@
__version__ = '0.1.1'