Skip to content

Commit f290729

Browse files
Merge branch 'type-check' of https://github.com/codePerfectPlus/RandomProfileGenerator into type-check
2 parents a03bbb4 + 965b59f commit f290729

File tree

5 files changed

+92
-43
lines changed

5 files changed

+92
-43
lines changed

.github/workflows/auto_assign.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

random_profile/assets/email_domains.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

random_profile/assets/job_titles.txt

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,41 @@ Cashier
6666
Real Estate Attorney
6767
Athlete Manager
6868
General Assistant
69-
3D Artist
69+
3D Artist
70+
Computer Scientist
71+
IT Professional
72+
UX Designer & UI Developer
73+
SQL Developer
74+
Web Designer
75+
Help Desk Worker/Desktop Support
76+
Data Entry
77+
DevOps Engineer
78+
Computer Programmer
79+
Network Administrator
80+
Information Security Analyst
81+
Artificial Intelligence Engineer
82+
Cloud Architect
83+
IT Manager
84+
Technical Specialist
85+
Application Developer
86+
Chief Technology Officer (CTO)
87+
Chief Information Officer (CIO)
88+
Building Inspector
89+
Pipefitter
90+
Sheet Metal Worker
91+
Iron Worker
92+
Mason
93+
Roofer
94+
Solar Photovoltaic Installer
95+
Well Driller
96+
Payroll Clerk
97+
Financial Planner
98+
Financial Services Representative
99+
Finance Director
100+
Commercial Loan Officer
101+
Culture Operations Manager
102+
Director of Ethical Hacking
103+
Software Ninjaneer
104+
Director of Bean Counting
105+
Digital Overlord
106+
Director of Storytelling

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Here is the module name.
99
name="random_profile",
1010
# version of the module
11-
version="0.2.3",
11+
version="1.0.0",
1212
# Name of Author
1313
author="Deepak Raj",
1414
# your Email address

update_package.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
3+
# Update package on pypi server
4+
5+
# check for flake8 and twine and install if not present
6+
if ! [ -x "$(command -v flake8)" ]; then
7+
echo 'Error: flake8 is not installed.' >&2
8+
echo 'Installing flake8...'
9+
pip install flake8
10+
fi
11+
12+
if ! [ -x "$(command -v twine)" ]; then
13+
echo 'Error: twine is not installed.' >&2
14+
echo 'Installing twine...'
15+
pip install twine
16+
fi
17+
18+
# check for setup.py
19+
if ! [ -f "setup.py" ]; then
20+
echo 'Error: setup.py is not found.' >&2
21+
exit 1
22+
fi
23+
24+
25+
# run sdists and wheels
26+
python3 setup.py sdist bdist_wheel
27+
28+
# check for dist folder
29+
if ! [ -d "dist" ]; then
30+
echo 'Error: dist folder is not found.' >&2
31+
exit 1
32+
fi
33+
34+
35+
read -p "Do you want to upload to pypi? (y/n) " -n 1 -r
36+
echo
37+
if [[ $REPLY =~ ^[Yy]$ ]]
38+
then
39+
python3 -m twine upload dist/*
40+
fi
41+
42+
43+
# remove dist folder
44+
rm -rf dist
45+
46+
# remove build folder
47+
rm -rf build
48+
49+
# remove .egg-info folder
50+
rm -rf *.egg-info
51+
52+
# remove .pyc files
53+
find . -name "*.pyc" -exec rm -rf {} \;

0 commit comments

Comments
 (0)