forked from pharmapsychotic/BLIP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pharmapsychotic#4 from justindujardin/main
Bring over library packaging from justindujardin
- Loading branch information
Showing
37 changed files
with
90 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.env/ | ||
build/ | ||
blip.egg-info/ | ||
dist/ |
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,19 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python: build", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "setup.py", | ||
"justMyCode": true, | ||
"args": [ | ||
"sdist", | ||
"bdist_wheel" | ||
] | ||
} | ||
] | ||
} |
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,4 @@ | ||
include blip/configs/*.* | ||
requirements.txt | ||
requirements-dev.txt | ||
README.md |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
pytest |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
timm==0.4.12 | ||
transformers==4.15.0 | ||
transformers>=4.15.0 | ||
fairscale==0.4.4 | ||
pycocoevalcap |
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 |
---|---|---|
@@ -1,21 +1,49 @@ | ||
import os | ||
|
||
import pkg_resources | ||
from pathlib import Path | ||
from setuptools import setup, find_packages | ||
|
||
setup( | ||
name="blip", | ||
py_modules=["blip"], | ||
version="1.0", | ||
description="", | ||
author="salesforce", | ||
packages=find_packages(exclude=["tests*"]), | ||
install_requires=[ | ||
str(r) | ||
for r in pkg_resources.parse_requirements( | ||
open(os.path.join(os.path.dirname(__file__), "requirements.txt")) | ||
) | ||
], | ||
include_package_data=True, | ||
extras_require={'dev': ['pytest']}, | ||
) | ||
|
||
def setup_package(): | ||
|
||
package_name = "blip" | ||
root = Path(__file__).parent.resolve() | ||
print("roo", root) | ||
|
||
with open(root / "README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
with open(root / "requirements.txt") as file: | ||
REQUIRED_MODULES = [line.strip() for line in file] | ||
|
||
with open(root / "requirements-dev.txt") as file: | ||
DEVELOPMENT_MODULES = [line.strip() | ||
for line in file if "-e" not in line] | ||
|
||
extras = {"dev": DEVELOPMENT_MODULES} | ||
extras["all"] = [item for group in extras.values() for item in group] | ||
|
||
setup( | ||
name=package_name, | ||
description="", | ||
author="salesforce", | ||
author_email="", | ||
url="", | ||
version="", | ||
license="", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
install_requires=REQUIRED_MODULES, | ||
packages=find_packages(), | ||
extras_require=extras, | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 2 - Pre-Alpha", | ||
], | ||
python_requires=">=3.6", | ||
include_package_data=True, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
setup_package() |