Skip to content

Commit

Permalink
dist
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Jun 7, 2023
1 parent 5c7aa56 commit b75ff5a
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ __pycache__
*.db
*.dat
*.json
*.txt
*.txt
Free.egg-info
build
dist
1 change: 1 addition & 0 deletions free/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
7 changes: 5 additions & 2 deletions main.py → free/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def parse(self, content:str):
self.parse_other(line)

def run(self):
print(f"Download Files will be restored in {self.store_dir}")
for task in self.tasks:
try:
content = str(task.parse())
Expand Down Expand Up @@ -130,8 +131,10 @@ def git_push(self):
subprocess.call(["git", "commit", "-m", "update"])
subprocess.call(["git", "push"])
os.chdir(self.cwd)


if __name__ == "__main__":
def Run():
v = VPN()
v.run()

if __name__ == "__main__":
Run()
59 changes: 59 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
from pathlib import Path
from setuptools import find_packages, setup

install_requires = [
"certifi>=2023.5.7",
"chardet>=5.1.0",
"charset-normalizer>=3.1.0",
"idna>=3.4",
"lxml>=4.9.2",
"Naked>=0.1.32",
"pycryptodome>=3.17",
"PyYAML>=6.0",
"requests>=2.30.0",
"shellescape>=3.8.1",
"urllib3>=2.0.2"
]

version = (Path(__file__).parent / "free/VERSION").read_text("ascii").strip()

setup(
name="Free",
version=version,
url="https://github.com/moqsien/vpns",
project_urls={
"Documentation": "https://github.com/moqsien/neobox",
},
description="A free vpns collector for neobox.",
author="Mo Qsien",
author_email="[email protected]",
maintainer="Mo Qsien",
maintainer_email="[email protected]",
license="MIT",
packages=find_packages(exclude=("tests", "tests.*")),
include_package_data=True,
zip_safe=False,
entry_points={"console_scripts": ["fvpn = free.run:Run"]},
classifiers=[
"Framework :: Sracpy",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
],
python_requires=">=3.11",
install_requires=install_requires,
)

0 comments on commit b75ff5a

Please sign in to comment.