-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f80bc5
commit 1c072f6
Showing
3 changed files
with
7 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,37 +3,15 @@ | |
|
||
import os | ||
import os.path | ||
from pathlib import Path | ||
import sys | ||
|
||
import setuptools | ||
|
||
PACKAGE_NAME = "cqkit" | ||
|
||
# loc = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
# with open(loc + "/requirements.txt") as f: | ||
# requirements = f.read().splitlines() | ||
|
||
required = [] | ||
dependency_links = [] | ||
# # do not add to required lines pointing to git repositories | ||
# EGG_MARK = "#egg=" | ||
# for line in requirements: | ||
# if ( | ||
# line.startswith("-e git:") | ||
# or line.startswith("-e git+") | ||
# or line.startswith("git:") | ||
# or line.startswith("git+") | ||
# ): | ||
# if EGG_MARK in line: | ||
# package_name = line[line.find(EGG_MARK) + len(EGG_MARK) :] | ||
# required.append(package_name) | ||
# dependency_links.append(line) | ||
# else: | ||
# print("Dependency to a git repository should have the format:") | ||
# print("git+ssh://[email protected]/xxxxx/xxxxxx#egg=package_name") | ||
# else: | ||
# required.append(line) | ||
|
||
|
||
def read_package_variable(key, filename="__init__.py"): | ||
|
@@ -47,15 +25,8 @@ def read_package_variable(key, filename="__init__.py"): | |
sys.exit("'{0}' not found in '{1}'".format(key, module_path)) | ||
|
||
|
||
def build_description(): | ||
"""Build a description for the project from documentation files.""" | ||
try: | ||
readme = open("README.md").read() | ||
changelog = open("CHANGELOG.md").read() | ||
except IOError: | ||
return "<placeholder>" | ||
else: | ||
return readme + "\n" + changelog | ||
this_directory = Path(__file__).parent | ||
long_description = (this_directory / "README.md").read_text() | ||
|
||
|
||
setuptools.setup( | ||
|
@@ -65,9 +36,9 @@ def build_description(): | |
url="https://github.com/michaelgale/cq-kit", | ||
author="Michael Gale", | ||
author_email="[email protected]", | ||
python_requires=">=3.8", | ||
python_requires=">=3.9", | ||
packages=setuptools.find_packages(), | ||
long_description=build_description(), | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
license="MIT", | ||
classifiers=[ | ||
|