This repository has been archived by the owner on Dec 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
WIP: Creating a Python package #231
Open
IanLee1521
wants to merge
12
commits into
18F:master
Choose a base branch
from
IanLee1521:python_package
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e51b5b6
Initial work on packaging up domain-scan
IanLee1521 aeeb526
Fix issue with package names
IanLee1521 7a7b45b
Merge branch 'master' into python_package
konklone a935f77
Fixed author email per:
IanLee1521 6a88751
Updated package keywords
IanLee1521 2718a95
Added package build dirs to .gitignore
IanLee1521 1f9bb5e
Moved modules into domain_scan package module
IanLee1521 48019f4
Fixed issues with having moved package modules around
IanLee1521 1b94b59
Updated setup.py to fix issues with packaging
IanLee1521 c709504
Merge remote-tracking branch 'upstream/master' into python_package
IanLee1521 77c0fa3
Moved new module gathererabc.py into domain_scan/
IanLee1521 2947039
Fixed importlib module references
IanLee1521 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = true |
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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
""" | ||
setup module for domain-scan | ||
|
||
Based on: | ||
|
||
- https://packaging.python.org/distributing/ | ||
- https://github.com/pypa/sampleproject/blob/master/setup.py | ||
- https://github.com/dhs-ncats/pshtt/blob/master/setup.py | ||
""" | ||
|
||
from setuptools import setup | ||
|
||
setup( | ||
name='domain-scan', | ||
|
||
# Versions should comply with PEP440 | ||
version='0.1.0-dev', | ||
description='lightweight scan pipeline for orchestrating third party tools, at scale and (optionally) using serverless infrastructure', | ||
|
||
# NCATS "homepage" | ||
url='https://18f.gsa.gov', | ||
# The project's main homepage | ||
download_url='https://github.com/18F/domain-scan', | ||
|
||
# Author details | ||
author='GSA 18F', | ||
# TODO: What is the right email -- author_email='[email protected]', | ||
|
||
license='License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication', | ||
|
||
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
'Development Status :: 4 - Beta', | ||
|
||
# Indicate who your project is intended for | ||
'Intended Audience :: Developers', | ||
|
||
# Pick your license as you wish (should match "license" above) | ||
'License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication', | ||
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate whether you support Python 2, Python 3 or both. | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
], | ||
|
||
# What does your project relate to? | ||
keywords='https best practices', | ||
|
||
packages=['pshtt'], | ||
|
||
install_requires=[ | ||
'strict-rfc3339', | ||
'publicsuffix', | ||
'boto3', | ||
'ipython', | ||
'sslyze>=1.3.4,<1.4.0', | ||
'cryptography', | ||
'pyyaml', | ||
'requests', | ||
'google-cloud-bigquery', | ||
'google-auth-oauthlib' | ||
], | ||
|
||
extras_require={ | ||
'test': [ | ||
'pytest' | ||
], | ||
}, | ||
|
||
# Conveniently allows one to run the CLI scripts | ||
scripts=[ | ||
'gather', | ||
'scan', | ||
] | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@konklone -- do you know the right email for here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't! But maybe we can just start with [email protected] for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that was one thought I'd had.