Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Its up to you after this
So I didnt implement any code of sort because you should do that
I just added some files to explain you where your project needs to go to progress.
Lemme just explain what all I have done. I'll also share links that you can refer to move ahead
I wasn't sure of what package
pptxcomes from so I have assumed itspython-pptxSo I created the following files :
setup.py
So every python package requires a setup.py which basically is used to provide metadata for your package as well scripts for building , documentation and packaging
I added a very basic setup.py to your repo
so as you can see
name,version,author,description,long_description,classifiersare all metadata information about your package that pypi and pip would use. The others play a more important rolepython_requiresinforms pip of your projects python version requirementspackagesincludes all the packages that you want to include in your project. In this case , you only have one package that is AutoPPT (we'll come to this later)install_requiresis information regarding what all package dependencies do you need installed to run your package smoothly.You can then run the following commands in the root directory of this repo to pip install the package you made in your environment
$ python setup.py install $ python setup.py bdist $ pip install .There are a lot more config files and commands using setup.py that you can include to refine and empower your project. Refer the links in the end for more details.
requirements.txt
So this file consists of the packages that you would need to develop the project in its environment
here setuptools and wheel are required for building tools while the rest are your package dependencies.
.gitignore
so a gitignore file reject useless files in your repo
when you build projects you get a lot of files important to running your project but those that you dont manage using git and don't require on github
I have added the that the default .gitignore for python projects
README.md
So you had a readme but it wasn't the best README.md so I tidied it a bit
AutoPPT/
So this is your package
what makes it a package is the presence of the
__init__.py. Its generally a file without any sort of code that helps your system recognise a folder as python package. so rememberTo make your python package executable you would need a
__main__.pywhen you run your module on command line instead of calling it with import , the
__main__.pyfile gets called which should have your command line interface.The other files in your package are your modules , you can name them whatever you want. In this case , we have presentation.py in which i added a generate_presentation function (equivalent to hello world).
so you can either open a python shell or notebook or script and import stuff out of your package
or you can directly execute the package on the command line
I have added comments in the files for your assistance
Links