You've already forked akaunting-py
Use scm for versioning
This commit is contained in:
@@ -1,2 +1,4 @@
|
|||||||
from akauntingpy.api import Client
|
from akauntingpy.api import Client
|
||||||
from akauntingpy.exceptions import *
|
from akauntingpy.exceptions import *
|
||||||
|
|
||||||
|
__version__ = '1.0.0'
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
from requests.auth import HTTPBasicAuth
|
from requests.auth import HTTPBasicAuth
|
||||||
from akauntingpy import exceptions
|
from akauntingpy import exceptions, __version__
|
||||||
from akauntingpy.helpers import *
|
from akauntingpy.helpers import *
|
||||||
|
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ class Client(object):
|
|||||||
self.url = url
|
self.url = url
|
||||||
self.authentication = HTTPBasicAuth(username, password)
|
self.authentication = HTTPBasicAuth(username, password)
|
||||||
self.headers = {
|
self.headers = {
|
||||||
'User-Agent': 'AkauntingPy 1.0',
|
'User-Agent': 'AkauntingPy v' + __version__,
|
||||||
}
|
}
|
||||||
self.company_id = company_id
|
self.company_id = company_id
|
||||||
self.default_params = {'company_id': company_id}
|
self.default_params = {'company_id': company_id}
|
||||||
|
|||||||
10
setup.py
10
setup.py
@@ -6,12 +6,10 @@ with open('README.md', 'r') as readme:
|
|||||||
long_description = readme.read()
|
long_description = readme.read()
|
||||||
|
|
||||||
|
|
||||||
version = '0.0.1'
|
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='akauntingpy',
|
name='akauntingpy',
|
||||||
version=version,
|
use_scm_version=True,
|
||||||
author='CyberCinch',
|
author='CyberCinch',
|
||||||
description='Python interface to the Akaunting API.',
|
description='Python interface to the Akaunting API.',
|
||||||
url='https://github.com/cybercinch/akaunting-py',
|
url='https://github.com/cybercinch/akaunting-py',
|
||||||
@@ -29,8 +27,8 @@ setup(
|
|||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
],
|
],
|
||||||
command_options={
|
command_options={
|
||||||
'build_sphinx': {
|
# 'build_sphinx': {
|
||||||
'version': ('setup.py', version),
|
# 'version': ('setup.py', version),
|
||||||
},
|
# },
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user