This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
56 lines (47 loc) · 1.88 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from setuptools import setup, find_packages
from fenv import __version__, __app_name__
import codecs
import os
file_path = f"{os.path.abspath(os.path.dirname(__file__))}/fenv/fenv.py"
# Read the original content of the file
with open(file_path, "r", encoding="utf-8") as file:
original_content = file.readlines()
# Modify the first line of the file with the new version string
modified_content = [f"version: str = '{__version__}'\n"] + original_content[1:]
# Write the modified content back to the file
with open(file_path, "w", encoding="utf-8") as file:
file.writelines(modified_content)
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, "readme.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()
DESCRIPTION = (
"Generate a folder, establish a virtual environment with a single command."
)
LONG_DESCRIPTION = "Generate a folder, establish a virtual environment, and simultaneously create the essential basic Python files, all with a single command"
# Setting up
setup(
name=__app_name__,
version=__version__,
author="wk18k (watchakorn-18k)",
author_email="<[email protected]>",
description=DESCRIPTION,
long_description_content_type="text/markdown",
long_description=long_description,
packages=find_packages(),
install_requires=["virtualenv"],
entry_points="""
[console_scripts]
fenv=fenv.fenv:main
""",
keywords=["python", "virtualenv", "create file", "create folder", "fenv", "wk-18k"],
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
],
)