Skip to content

Commit

Permalink
Drop python 3.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
lsbardel committed Aug 4, 2019
1 parent 1304085 commit f0931b6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 42 deletions.
13 changes: 0 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
version: 2
jobs:
test35:
docker:
- image: circleci/python:3.5
steps:
- checkout
- run:
name: install
command: sudo ./dev/install.sh
- run:
name: test
command: pytest
test36:
docker:
- image: circleci/python:3.6
Expand Down Expand Up @@ -68,12 +57,10 @@ workflows:
build-deploy:
jobs:
- tests
- test35
- test36
- deploy-release:
requires:
- tests
- test35
- test36
filters:
branches:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ join and add more.
:Package: |license| |pyversions| |status| |downloads|
:CI: |master-build| |coverage-master|
:Dowloads: https://pypi.org/project/ccy/
:Source: https://github.com/lsbardel/ccy
:Source: https://github.com/quantmind/ccy

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/ccy.svg
:target: https://pypi.org/project/ccy/
Expand Down
3 changes: 2 additions & 1 deletion ccy/dates/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def add_tenure(self, pstr):
self.add_months(v)
elif p == "Y":
self.add_years(v)
st = st[ip + 1 :]
ip += 1
st = st[ip:]
return self

def __add__(self, other):
Expand Down
54 changes: 27 additions & 27 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
import os
from setuptools import setup, find_packages

from setuptools import find_packages, setup

import ccy


def read(name):
filename = os.path.join(os.path.dirname(__file__), name)
with open(filename, encoding='utf8') as fp:
with open(filename, encoding="utf8") as fp:
return fp.read()


def requirements(name):
install_requires = []
dependency_links = []

for line in read(name).split('\n'):
if line.startswith('-e '):
for line in read(name).split("\n"):
if line.startswith("-e "):
link = line[3:].strip()
if link == '.':
if link == ".":
continue
dependency_links.append(link)
line = link.split('=')[1]
line = link.split("=")[1]
line = line.strip()
if line:
install_requires.append(line)

return install_requires, dependency_links


install_requires = requirements('dev/requirements.txt')[0]
tests_require = requirements('dev/requirements-dev.txt')[0]
install_requires = requirements("dev/requirements.txt")[0]
tests_require = requirements("dev/requirements-dev.txt")[0]


meta = dict(
name='ccy',
name="ccy",
version=ccy.__version__,
description=ccy.__doc__,
author='Luca Sbardella',
author="Luca Sbardella",
author_email="luca@quantmind.com",
maintainer_email="luca@quantmind.com",
url="https://github.com/lsbardel/ccy",
url="https://github.com/quantmind/ccy",
license="BSD",
long_description=read('README.rst'),
packages=find_packages(include=['ccy', 'ccy.*']),
long_description=read("README.rst"),
packages=find_packages(include=["ccy", "ccy.*"]),
install_requires=install_requires,
tests_require=tests_require,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Office/Business :: Financial',
'Topic :: Utilities'
]
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Office/Business :: Financial",
"Topic :: Utilities",
],
)


if __name__ == '__main__':
if __name__ == "__main__":
setup(**meta)

0 comments on commit f0931b6

Please sign in to comment.