Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/pre-commit-3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eXamadeus authored Dec 26, 2023
2 parents 4295d26 + 9e3d510 commit 7f1aa88
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ docs/_build/
godaddypy.iml
.cache/
venv*/
*.out
*.geany
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include requirements.txt
include requirements-dev.txt
16 changes: 15 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/usr/bin/env python

import os
import re

from setuptools import setup

CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))

def get_reqs(*fns):
lst = []
for fn in fns:
for package in open(os.path.join(CURRENT_DIR, fn)).readlines():
package = package.strip()
if not package:
continue
lst.append(package.strip())
return lst

with open("godaddypy/__init__.py", "r") as f:
version_match = re.search(r"^__version__\s*=\s*[\'\"]([^\'\"]*)[\'\"]", f.read(), re.MULTILINE)

Expand All @@ -24,7 +37,8 @@
author_email="julian.calvin.coy@gmail.com",
url="https://github.com/eXamadeus/godaddypy",
packages=["godaddypy"],
install_requires=["requests>=2.4"],
install_requires=get_reqs('requirements.txt'),
tests_require=get_reqs('requirements-dev.txt'),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 7f1aa88

Please sign in to comment.